solve the system of 3 linear equations using matrices